package newcrunch.codeanalysis;

import javax.swing.tree.DefaultMutableTreeNode;

/**
 *
 * @author ccadm
 */
public class InfoNode extends DefaultMutableTreeNode
{
    private int startPos;
    private int endPos;
    
    public InfoNode(String message)
    {
        this(message, -1, -1);
    }
    
    public InfoNode(int startPos, int endPos)
    {
        this("", startPos, endPos);
    }
    
    public InfoNode(String message, int startPos, int endPos)
    {
        super(message);
        
        this.startPos = startPos;
        this.endPos = endPos;
    }
    
    public int getStartPos()
    {
        return startPos;
    }
    
    public int getEndPos()
    {
        return endPos;
    }
}
